package com.acdc.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户充值记录对象 t_recharge_record
 * 
 * @author acdc
 * @date 2025-08-26
 */
public class RechargeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 充值订单编号 */
    @Excel(name = "充值订单编号")
    private String orderId;

    /** 充值金额(元) */
    @Excel(name = "充值金额(元)")
    private Float amount;

    /** 充值前余额(元) */
    @Excel(name = "充值前余额(元)")
    private BigDecimal balanceBefore;

    /** 充值后余额(元) */
    @Excel(name = "充值后余额(元)")
    private BigDecimal balanceAfter;

    /** 充值类型 */
    @Excel(name = "充值类型")
    private Long rechargeType;

    /** 充值状态 */
    @Excel(name = "充值状态")
    private Long status;

    /** 交易流水号 */
    @Excel(name = "交易流水号")
    private String transactionId;

    /** 表号 */
    @Excel(name = "表号")
    private String meterNo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    private RefundRecord refundRecord;

    private PowerConsumptionRecord record;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setAmount(Float amount) 
    {
        this.amount = amount;
    }

    public Float getAmount() 
    {
        return amount;
    }

    public void setBalanceBefore(BigDecimal balanceBefore) 
    {
        this.balanceBefore = balanceBefore;
    }

    public BigDecimal getBalanceBefore() 
    {
        return balanceBefore;
    }

    public void setBalanceAfter(BigDecimal balanceAfter) 
    {
        this.balanceAfter = balanceAfter;
    }

    public BigDecimal getBalanceAfter() 
    {
        return balanceAfter;
    }

    public void setRechargeType(Long rechargeType) 
    {
        this.rechargeType = rechargeType;
    }

    public Long getRechargeType() 
    {
        return rechargeType;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }

    public void setMeterNo(String meterNo) 
    {
        this.meterNo = meterNo;
    }

    public String getMeterNo() 
    {
        return meterNo;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public RefundRecord getRefundRecord() {
        return refundRecord;
    }

    public void setRefundRecord(RefundRecord refundRecord) {
        this.refundRecord = refundRecord;
    }

    public PowerConsumptionRecord getRecord() {
        return this.record;
    }

    public void setRecord(PowerConsumptionRecord record) {
        this.record = record;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("amount", getAmount())
            .append("balanceBefore", getBalanceBefore())
            .append("balanceAfter", getBalanceAfter())
            .append("rechargeType", getRechargeType())
            .append("status", getStatus())
            .append("transactionId", getTransactionId())
            .append("meterNo", getMeterNo())
            .append("remark", getRemark())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("refundRecord", getRefundRecord())
            .toString();
    }
}
